tools/libxl: Combine legacy CPUID handling logic
authorAndrew Cooper <andrew.cooper3@citrix.com>
Wed, 5 Feb 2020 15:25:21 +0000 (15:25 +0000)
committerAndrew Cooper <andrew.cooper3@citrix.com>
Tue, 11 Feb 2020 18:26:52 +0000 (18:26 +0000)
commit1b3cec69bf300e012a0269f0a4f28cca1ebf22c9
tree75f140c3a46885244a113459fce83aac286f8b83
parentdacb80f9757c011161cec6609f39837c9ea8caa8
tools/libxl: Combine legacy CPUID handling logic

While we are in the process of overhauling boot time CPUID/MSR handling, the
existing logic is going to have to remain in roughly this form for backwards
compatibility.

Fold libxl__cpuid_apply_policy() and libxl__cpuid_set() together into a single
libxl__cpuid_legacy() to reduce the complexity for callers.

No functional change.

Signed-off-by: Andrew Cooper <andrew.cooper3@citrix.com>
Acked-by: Ian Jackson <ian.jackson@eu.citrix.com>
tools/libxl/libxl_cpuid.c
tools/libxl/libxl_dom.c
tools/libxl/libxl_internal.h
tools/libxl/libxl_nocpuid.c